package com.dwxt.community.aiequipment.enumeration;

/**
 * @program: intelligentcity
 * @description: 垃圾桶解析
 * @author
 * @create: 2020/04/16
 */
public enum ResStatueEnum {
    OK(0,"正常"),
    LENGTH_ERROR(1,"字节数组长度和解析的长度不一致"),
    START_CODE_ERROR(2,"起始码不匹配"),
    CRC_ERROR(3,"CRC校验错误"),
    DATA_PARSE_ERROR(4,"数据解析错误"),
    DATA_NULL(5,"服务器接收到的数据为空"),

    DEVCIE_NOT_REGISTER(1,"设备未注册"),
    SERVER_INNER_ERROR(2,"服务器程序出错"),
    CODE_VERIFY_ERROR(3,"卡号验证不通过"),
    NOT_PAY(10,"未支付"),
    QRCODE_NTO_PAY(11,"二维码未支付"),
    QRCODE_PAY_FAILED(12,"二维码支付失败"),
    CODE_NOT_REGISTER(13,"卡号未注册"),
    NOT_GOODS(14,"货到未配置商品"),
    WANT_GOODS(15,"商品不足"),
    UNKNOW_EQUIPMENT(16,"不属于本机构"),
    ;

    private int code;
    private String msg;


    ResStatueEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
